package entity

import ()

type Country struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	CountryCode string `gorm:"column:country_code;type:VARCHAR(255)" json:"country_code"`

	EnglishName string `gorm:"column:english_name;type:VARCHAR(255)" json:"english_name"`

	ChineseName string `gorm:"column:chinese_name;type:VARCHAR(255)" json:"chinese_name"`

	LocalName string `gorm:"column:local_name;type:VARCHAR(255)" json:"local_name"`

	Location string `gorm:"column:location;type:VARCHAR(255)" json:"location"`

	LocalLanguage string `gorm:"column:local_language;type:VARCHAR(255)" json:"local_language"`

	LocalDialect string `gorm:"column:local_dialect;type:VARCHAR(255)" json:"local_dialect"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Country) TableName() string {
	return "countrys"
}
